import Mock from "better-mock";
import getActivitys from "./data/getActivitys.json";
import getConfig from "./data/getConfig.json";
import getLessee from "./data/getLessee.json";
import getUnits from "./data/getUnits.json";
import getTemplateById from './data/getTemplateById.json'
import getOrg from './data/getOrg.json'

// 上传图片
/*
Mock.mock('/support/oss/putObject', 'post', function() {
  return {
    data: {"url":"https://preview-ythyw.scgsdsj.com:30443/web/oss/getObject/work-order/1687944264236/582330a1-c4cf-4eac-b114-9a5756e0a17a"}
  }
})
*/

Mock.mock('/support/template/getActivitys?activityType=work_order', 'get', function() {
  return getActivitys
})

Mock.mock('/support/lessee/list', 'get', function() {
  return getLessee
})

Mock.mock('/support/config/getConfig?configKey=work_order_level', 'get', function() {
  return getConfig
})

Mock.mock('/support/template/getUnits?centerCode=work_order_center', 'get', function() {
  return getUnits
})

Mock.mock('/support/template/getOrg', 'post', function() {
  return getOrg
})

Mock.mock('/support/template/getTemplateById?templateId=120142', 'get', function() {
  return getTemplateById
})


